package unit5.part5;

public class TwoFund extends Fund {
    double a;
    double b;

    public TwoFund(int n, int num, double a, double b) {
        super(n, num);
        this.a = a;
        this.b = b;
    }

    double value(int day) {
        return a * day * day + b * day;
    }
}
